<!DOCTYPE html>
<html>	
<head>
<title>Login</title>
<link href="__STATIC__/login/css/style.css" rel='stylesheet' type='text/css' />

</head>
<body>

 <!--SIGN UP-->
 <h1>后台登录</h1>
<div class="login-form">
	<div class="close"> </div>
		<div class="head-info">
			<label class="lbl-1"> </label>
			<label class="lbl-2"> </label>
			<label class="lbl-3"> </label>
		</div>
			<div class="clear"> </div>
	<div class="avtar">
		<img src="__STATIC__/login/images/avtar.png" />
	</div>
			<form action="doLogin" method="post" name="form" onsubmit="return checkForm(this)" >
					<input type="text" class="text" placeholder="用户名" name="username" >
						<div class="key" >
					<input type="password" placeholder="密码" name="userpwd">
						</div>
	<div class="signin">
		<!--<button type="submit">Login</button>-->
		<input type="submit" value="Login" >
	</div>
			</form>
</div>
 <div class="copy-rights">
					<p>Copyright &copy; thinkexam All rights reserved  <a href="" > </a></p>
			</div>

</body>
</html>

<script type="text/javascript">
    // 验证输入不为空的脚本代码
    function checkForm(form) {
        if(form.username.value == "") {
            console.log(form.username.value);
            alert("用户名不能为空!");
            return false;
        }
        if(form.userpwd.value == "") {
            alert("密码不能为空!");
            form.userpwd.focus();
            return false;
        }
        return true;
    }
</script>
